<?php /* Smarty version Smarty-3.1.11, created on 2013-08-26 08:20:46
         compiled from "..\templates\ctdt\lop.tpl" */ ?>
<?php /*%%SmartyHeaderCode:15883521aad6e1da4d6-22689677%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9fde6c7e7953dddd9b4a2652eba1c1613bfec347' => 
    array (
      0 => '..\\templates\\ctdt\\lop.tpl',
      1 => 1374631183,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15883521aad6e1da4d6-22689677',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hanche' => 0,
    'lopsua' => 0,
    'thongbao' => 0,
    'dmcb' => 0,
    'cb' => 0,
    'dmctdt' => 0,
    'ctdt' => 0,
    'dmtt' => 0,
    'tt' => 0,
    'lop' => 0,
    'l' => 0,
    'ds_dem' => 0,
    'dem' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_521aad6e423b27_38007859',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_521aad6e423b27_38007859')) {function content_521aad6e423b27_38007859($_smarty_tpl) {?><br />
<div class="content-box">  
    <div class="content-box-header">    <!------------------content-box-header---------------------->
        <h3>Danh Sách Lớp</a></h3>
    </div> <!-- End .content-box-header --> 
    <div class="content-box-content"><br /><br />
<!--------------------------------------------------Nội dung trang------------------------------------------------------>
      
       <form action="" id="formnoidung" method="POST">
<?php if ($_smarty_tpl->tpl_vars['hanche']->value==false){?>
        <table style="margin-left:340px">
            <tr>
                <td colspan="2" style="padding-left:85px"><h3>Thêm mới danh sách lớp</h3></td>
            
            </tr>
            <tr>
                <td colspan="2" style="padding-left :100px">
                    <input type="hidden" class="text-input" name="lopcu" value="<?php echo $_smarty_tpl->tpl_vars['lopsua']->value['ma_lop'];?>
" />
                    <font color="red"><?php echo $_smarty_tpl->tpl_vars['thongbao']->value;?>
</font>
                </td>
            </tr>
            <tr>
                <td class="td-150">Mã lớp</td>
                <td><input class="text-input" type="text" name="malop" value="<?php echo $_smarty_tpl->tpl_vars['lopsua']->value['ma_lop'];?>
" /></td>
            </tr>
            <tr>
                    
                <td class="td-150">Tên lớp</td>
                <td>
                     <input class="text-input" type="text" name="tenlop" value="<?php echo $_smarty_tpl->tpl_vars['lopsua']->value['ten_lop'];?>
" />   
                </td>
            </tr>
            
            <tr>
                    
                <td class="td-150">Số lượng SV</td>
                <td>
                     <input class="text-input" type="text" name="slsv" value="<?php echo $_smarty_tpl->tpl_vars['lopsua']->value['sl_svlop'];?>
" />   
                </td>
            </tr>
            <tr>
                    
                <td class="td-150">GV Chủ nhiệm</td>
                <td>
                        <select name="canbo">
                                <option value="">-- Cán bộ --</option>
                                <?php  $_smarty_tpl->tpl_vars['cb'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cb']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmcb']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['cb']->key => $_smarty_tpl->tpl_vars['cb']->value){
$_smarty_tpl->tpl_vars['cb']->_loop = true;
?>                                
                                 <option value="<?php echo $_smarty_tpl->tpl_vars['cb']->value['ma_cb'];?>
" <?php if ($_smarty_tpl->tpl_vars['cb']->value['ma_cb']==$_smarty_tpl->tpl_vars['lopsua']->value['ma_cb']){?>selected=''<?php }?>><?php echo $_smarty_tpl->tpl_vars['cb']->value['hoten_cb'];?>
</option>
                                <?php } ?>
                        </select>
                </td>
            </tr>
            <tr>
                  <td class="td-150">CTĐT</td>
                <td>
                        <select name="ctdt">
                                <option value="">-- CTĐT --</option>
                                <?php  $_smarty_tpl->tpl_vars['ctdt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ctdt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmctdt']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ctdt']->key => $_smarty_tpl->tpl_vars['ctdt']->value){
$_smarty_tpl->tpl_vars['ctdt']->_loop = true;
?>                                
                                 <option value="<?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ma_ctdt'];?>
" <?php if ($_smarty_tpl->tpl_vars['ctdt']->value['ma_ctdt']==$_smarty_tpl->tpl_vars['lopsua']->value['ma_ctdt']){?>selected=''<?php }?> ><?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ten_td'];?>
-<?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ten_hedt'];?>
-<?php echo $_smarty_tpl->tpl_vars['ctdt']->value['ten_nganh'];?>
</option>
                                <?php } ?>
                        </select>
                </td>
            </tr>
            <tr>
                <td class="td-150">Trung tâm</td>
                <td>
                        <select name="trungtam">
                                <option value="">-- Trung tâm --</option>
                                <?php  $_smarty_tpl->tpl_vars['tt'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tt']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dmtt']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tt']->key => $_smarty_tpl->tpl_vars['tt']->value){
$_smarty_tpl->tpl_vars['tt']->_loop = true;
?>                                
                                 <option value="<?php echo $_smarty_tpl->tpl_vars['tt']->value['ma_trungtam'];?>
" <?php if ($_smarty_tpl->tpl_vars['tt']->value['ma_trungtam']==$_smarty_tpl->tpl_vars['lopsua']->value['ma_trungtam']){?>selected=''<?php }?> ><?php echo $_smarty_tpl->tpl_vars['tt']->value['ten_trungtam'];?>
</option>
                                <?php } ?>
                        </select>
                </td>
            </tr>
            
            <tr>
                <td colspan="2" style="padding-left : 114px"><input class="button" type="submit" name="luu" value="Lưu" />
                <input class="button" type="reset" name="huy" value="Hủy"/>
                </td>
            </tr>
        </table>
<?php }?>
        <br /><br />
        <table>
            <tr>
                <td colspan="8" ><h3 style="padding-left:400px">Danh Sách Lớp</h3></td>
            </tr>
            <tr>
                    <td><input class="button" type="submit" name="xoa" value="Xóa" /> </td>
                    <td class="td-100">Mã lớp</td>
                    <td class="td-200">Tên lớp</td>
                    <td class="td-100">Số SV/SL</td>
                    <td class="td-150">GV chủ nhiệm</td>
                    <td class="td-100">CTĐT</td>
                    <td class="td-500">Trung tâm</td>
                    <td class="td-100">Sửa</td>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['l'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['l']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lop']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['l']->key => $_smarty_tpl->tpl_vars['l']->value){
$_smarty_tpl->tpl_vars['l']->_loop = true;
?>
            <tr>
                <td><input type="checkbox" name="check[]" value="'<?php echo $_smarty_tpl->tpl_vars['l']->value['ma_lop'];?>
'" /></td>
                <td><?php echo $_smarty_tpl->tpl_vars['l']->value['ma_lop'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['l']->value['ten_lop'];?>
</td>
                <td>
                    <?php  $_smarty_tpl->tpl_vars['dem'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dem']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ds_dem']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dem']->key => $_smarty_tpl->tpl_vars['dem']->value){
$_smarty_tpl->tpl_vars['dem']->_loop = true;
?>
                        <?php if ($_smarty_tpl->tpl_vars['l']->value['ma_lop']==$_smarty_tpl->tpl_vars['dem']->value['ma_lop']){?>
                            <?php echo $_smarty_tpl->tpl_vars['dem']->value['slsv'];?>
/<?php break 1?>
                        <?php }?>
                    <?php } ?>
                    <?php echo $_smarty_tpl->tpl_vars['l']->value['sl_svlop'];?>

                </td>
                <td><?php echo $_smarty_tpl->tpl_vars['l']->value['hoten_cb'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['l']->value['ten_vt_td'];?>
-<?php echo $_smarty_tpl->tpl_vars['l']->value['ten_vt_hedt'];?>
-<?php echo $_smarty_tpl->tpl_vars['l']->value['ten_vt_nganh'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['l']->value['ten_trungtam'];?>
</td>
<?php if ($_smarty_tpl->tpl_vars['hanche']->value==false){?>                                
                <td><a href="index.php?muc=ctdt&modul=lop&ma_lop=<?php echo $_smarty_tpl->tpl_vars['l']->value['ma_lop'];?>
">[Sửa]</a></td>
<?php }?>
            </tr>
            <?php } ?>
        </table>
        
</form>
<!------------------------------------------------------Kết thúc trang----------------------------------------------------------------->
</div> <!-- End .content-box-content->

</div> <!-- End .content-box---><?php }} ?>